package com.zhaoqi.hr.dto.request;

import javax.validation.constraints.NotBlank;

/**
 * 微信手机号授权登录请求DTO
 */
public class WechatPhoneLoginRequest {

    @NotBlank(message = "微信登录code不能为空")
    private String code;

    @NotBlank(message = "加密数据不能为空")
    private String encryptedData;

    @NotBlank(message = "初始向量不能为空")
    private String iv;

    @NotBlank(message = "用户角色不能为空")
    private String role; // WORKER 或 EMPLOYER

    // Getter and Setter methods
    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getEncryptedData() {
        return encryptedData;
    }

    public void setEncryptedData(String encryptedData) {
        this.encryptedData = encryptedData;
    }

    public String getIv() {
        return iv;
    }

    public void setIv(String iv) {
        this.iv = iv;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }
}
